﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.ServiceModel.Web;

namespace LAPI.Services
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "testServices" in code, svc and config file together.
    public class testServices : ItestServices
    {
        public String dataTestID(String id)
        {
            WebOperationContext.Current.OutgoingResponse.Headers.Add("Access-Control-Allow-Origin", "*");
            return "El id es " + id;
        }

        public String dataTestActionByID(String id, String action)
        {
            WebOperationContext.Current.OutgoingResponse.Headers.Add("Access-Control-Allow-Origin", "*");
            return "El id es " + id + " y su accion es " + action;
        }       
    }
}
